<?php

/**
 * @package Core
 * @author superx
 */
class Core_Validator_Enum implements Core_Validator_Interface{
    public $values = array();
    public $strict = false;
    
    public function __construct(array $values, $strict = false) {
    	$this->values = $values;
    	$this->strict = $strict;
    }
    
    public function isValid($data){
        return in_array($data, $this->values, $this->strict);
    }
}